Skip to content

Zend: Name map ptr chunk size constants - #23109

Merged
LamentXU123 merged 2 commits into
php:masterfrom
LamentXU123:ref-magic-num
Aug 10, 2026
Merged

Zend: Name map ptr chunk size constants#23109
LamentXU123 merged 2 commits into
php:masterfrom
LamentXU123:ref-magic-num

Conversation

@LamentXU123

@LamentXU123 LamentXU123 commented Aug 7, 2026

Copy link
Copy Markdown
Member

Let's prevent writing 4095 and 4096 as a magic number, its indeed confusing, instead use ZEND_MAP_PTR_CHUNK_MASK and ZEND_MAP_PTR_CHUNK_SIZE

Comment thread Zend/zend_map_ptr.h Outdated
@LamentXU123
LamentXU123 requested a review from arnaud-lb August 9, 2026 14:07

@arnaud-lb arnaud-lb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@LamentXU123
LamentXU123 merged commit c2816be into php:master Aug 10, 2026
18 checks passed
@LamentXU123
LamentXU123 deleted the ref-magic-num branch August 10, 2026 17:09
@LamentXU123

Copy link
Copy Markdown
Member Author

Thx!

LamentXU123 added a commit that referenced this pull request Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants